Optimal. Leaf size=51 \[ \frac {A b-a B}{2 a b \left (a+b x^2\right )}+\frac {A \log (x)}{a^2}-\frac {A \log \left (a+b x^2\right )}{2 a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {457, 78}
\begin {gather*} -\frac {A \log \left (a+b x^2\right )}{2 a^2}+\frac {A \log (x)}{a^2}+\frac {A b-a B}{2 a b \left (a+b x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 457
Rubi steps
\begin {align*} \int \frac {A+B x^2}{x \left (a+b x^2\right )^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {A+B x}{x (a+b x)^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {A}{a^2 x}+\frac {-A b+a B}{a (a+b x)^2}-\frac {A b}{a^2 (a+b x)}\right ) \, dx,x,x^2\right )\\ &=\frac {A b-a B}{2 a b \left (a+b x^2\right )}+\frac {A \log (x)}{a^2}-\frac {A \log \left (a+b x^2\right )}{2 a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 46, normalized size = 0.90 \begin {gather*} \frac {\frac {a (A b-a B)}{b \left (a+b x^2\right )}+2 A \log (x)-A \log \left (a+b x^2\right )}{2 a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 48, normalized size = 0.94
method | result | size |
default | \(-\frac {A \ln \left (b \,x^{2}+a \right )-\frac {a \left (A b -B a \right )}{b \left (b \,x^{2}+a \right )}}{2 a^{2}}+\frac {A \ln \left (x \right )}{a^{2}}\) | \(48\) |
norman | \(-\frac {\left (A b -B a \right ) x^{2}}{2 a^{2} \left (b \,x^{2}+a \right )}+\frac {A \ln \left (x \right )}{a^{2}}-\frac {A \ln \left (b \,x^{2}+a \right )}{2 a^{2}}\) | \(48\) |
risch | \(\frac {A}{2 a \left (b \,x^{2}+a \right )}-\frac {B}{2 b \left (b \,x^{2}+a \right )}+\frac {A \ln \left (x \right )}{a^{2}}-\frac {A \ln \left (b \,x^{2}+a \right )}{2 a^{2}}\) | \(53\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 51, normalized size = 1.00 \begin {gather*} -\frac {B a - A b}{2 \, {\left (a b^{2} x^{2} + a^{2} b\right )}} - \frac {A \log \left (b x^{2} + a\right )}{2 \, a^{2}} + \frac {A \log \left (x^{2}\right )}{2 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.83, size = 70, normalized size = 1.37 \begin {gather*} -\frac {B a^{2} - A a b + {\left (A b^{2} x^{2} + A a b\right )} \log \left (b x^{2} + a\right ) - 2 \, {\left (A b^{2} x^{2} + A a b\right )} \log \left (x\right )}{2 \, {\left (a^{2} b^{2} x^{2} + a^{3} b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.33, size = 46, normalized size = 0.90 \begin {gather*} \frac {A \log {\left (x \right )}}{a^{2}} - \frac {A \log {\left (\frac {a}{b} + x^{2} \right )}}{2 a^{2}} + \frac {A b - B a}{2 a^{2} b + 2 a b^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.92, size = 63, normalized size = 1.24 \begin {gather*} \frac {A \log \left (x^{2}\right )}{2 \, a^{2}} - \frac {A \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, a^{2}} + \frac {A b^{2} x^{2} - B a^{2} + 2 \, A a b}{2 \, {\left (b x^{2} + a\right )} a^{2} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.09, size = 47, normalized size = 0.92 \begin {gather*} \frac {A\,\ln \left (x\right )}{a^2}-\frac {A\,\ln \left (b\,x^2+a\right )}{2\,a^2}+\frac {A\,b-B\,a}{2\,a\,b\,\left (b\,x^2+a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________